package com.rbac.service.impl;

import com.rbac.entity.vo.SysUserVo;
import com.rbac.service.SysUserService;
import org.springframework.stereotype.Service;

import java.time.LocalDateTime;

@Service
public class SysUserServiceImpl implements SysUserService {
    @Override
    public SysUserVo findByUsername(String username) {
        SysUserVo sysUserVo = new SysUserVo();
        sysUserVo.setId(1L);
        sysUserVo.setUsername("何天秀");
        sysUserVo.setPassword("$2a$10$AmlOBS4d3meLlpttbTisF.TjJIrxoDVEL3xjeAFxxleAGWUira0Cu");
        sysUserVo.setAdmin(true);
        sysUserVo.setEnabled("1");
        sysUserVo.setNickName("和天佑");
        sysUserVo.setCreateBy("我");
        sysUserVo.setCreateTime(LocalDateTime.now());
        sysUserVo.setUpdateTime(LocalDateTime.now());
        return sysUserVo;
    }
}
